Remove unused and unnecessary gnttab ioctl.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 8 Nov 2005 11:25:09 +0000 (12:25 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 8 Nov 2005 11:25:09 +0000 (12:25 +0100)
Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/arch/xen/kernel/gnttab.c

index 4c0a10541ba36a07d585efccee81453d509db6e5..e996b9d832cd4e3347cc36b25b4dbe1fdfa7264e 100644 (file)
@@ -337,53 +337,7 @@ gnttab_request_free_callback(struct gnttab_free_callback *callback,
 #ifdef CONFIG_PROC_FS
 
 static struct proc_dir_entry *grant_pde;
-
-static int
-grant_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
-           unsigned long data)
-{
-       int                     ret;
-       privcmd_hypercall_t     hypercall;
-
-       /*
-        * XXX Need safety checks here if using for anything other
-        *     than debugging.
-        */
-       return -ENOSYS;
-
-       if ( cmd != IOCTL_PRIVCMD_HYPERCALL )
-               return -ENOSYS;
-
-       if ( copy_from_user(&hypercall, (void *)data, sizeof(hypercall)) )
-               return -EFAULT;
-
-       if ( hypercall.op != __HYPERVISOR_grant_table_op )
-               return -ENOSYS;
-
-#ifdef __ia64__
-       ret = HYPERVISOR_grant_table_op(hypercall.arg[0], (void *)hypercall.arg[1], hypercall.arg[2]);
-#else
-       /* hypercall-invoking asm taken from privcmd.c */
-       __asm__ __volatile__ (
-               "pushl %%ebx; pushl %%ecx; pushl %%edx; "
-               "pushl %%esi; pushl %%edi; "
-               "movl  4(%%eax),%%ebx ;"
-               "movl  8(%%eax),%%ecx ;"
-               "movl 12(%%eax),%%edx ;"
-               "movl 16(%%eax),%%esi ;"
-               "movl 20(%%eax),%%edi ;"
-               "movl   (%%eax),%%eax ;"
-               TRAP_INSTR "; "
-               "popl %%edi; popl %%esi; popl %%edx; popl %%ecx; popl %%ebx"
-               : "=a" (ret) : "0" (&hypercall) : "memory" );
-#endif
-
-       return ret;
-}
-
-static struct file_operations grant_file_ops = {
-       ioctl:  grant_ioctl,
-};
+static struct file_operations grant_file_ops;
 
 static int
 grant_read(char *page, char **start, off_t off, int count, int *eof,